package com.charlotte.study.gupao.state.general.simple;

/**
 * @author junjie.ding
 * @date 2020/3/20
 */
public class Context {


    private final IState STATE_A = new ConcreteStateA();

    private final IState STATE_B = new ConcreteStateB();

    private IState current = STATE_A;

    public void setState(IState state){
        this.current = state;
    }

    public void handle(){
        this.current.handle();
    }

}
